package Kuaishou;

import java.util.Set;

import com.google.common.collect.Sets;

/**
 * 枚举包含测试
 * @author leiwenkang <leiwenkang@kuaishou.com>
 * Created on 2021-05-10
 */
public class Test42枚举包含测试 {

    private static final Set<StockType> STOCK_TYPES = Sets.newHashSet();

    static {
        STOCK_TYPES.add(StockType.SPLASH);
        STOCK_TYPES.add(StockType.FEED);
    }

    public static void main(String[] args) {
        System.out.println(STOCK_TYPES.contains(StockType.FANSTOP));
    }
}

enum StockType {
    SPLASH,
    FEED,
    FANSTOP;
}
